//
//  predicate.swift
//  CooperSwift_Example
//
//  Created by 计海峰 on 2021/10/11.
//  Copyright © 2021 CocoaPods. All rights reserved.
//

import Foundation

import PredicateFlow

class Dog: NSObject, PredicateSchema {
    @objc var name: String = ""
    @objc var age: Int = 0
    @objc var isHungry: Bool = false
    @objc var owner: Person?
}

class Person: NSObject, PredicateSchema {
    enum Sex {
        case male
        case female
    }
    private var name: String = ""
    private var birth: Date?
    private var sex: Sex!
    private var dogs: [Dog] = []
}
